package com.example.travel.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author : LinQingLiang
 * @file : Role.java
 * @Since : 2023/1/30 21:20
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Role对象",description = "")
@TableName("sys_role")
public class Role {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("用户id")
    private int id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("唯一标识")
    private String flag;
}
